using System;
using System.Reflection.Emit;
using Pine.Core;
using Pine.SourceParser.Tree;

namespace Pine.CodeGen
{
	public class NullConstantCodeGenerator
	{
		public static void GenerateBytecode(Context ctx, Expression expr, LocalBuilder lb)
		{
			ctx.il.Emit(OpCodes.Ldsfld, typeof(NullValue).GetField("Null"));
			ctx.il.Emit(OpCodes.Stloc, lb);
		}
	}
}

